package com.itcoon.cloud.framework.i18n.bundle;

import java.time.Duration;

public class Bundle {

    private String baseName;

    private boolean isFallbackToSystemLocale;

    private Duration cacheDuration;

    private boolean isAlwaysUseMessageFormat;

    private boolean isUseCodeAsDefaultMessage;

    public String getBaseName() {
        return baseName;
    }

    public void setBaseName(String baseName) {
        this.baseName = baseName;
    }

    public boolean isFallbackToSystemLocale() {
        return isFallbackToSystemLocale;
    }

    public void setFallbackToSystemLocale(boolean fallbackToSystemLocale) {
        isFallbackToSystemLocale = fallbackToSystemLocale;
    }

    public Duration getCacheDuration() {
        return cacheDuration;
    }

    public void setCacheDuration(Duration cacheDuration) {
        this.cacheDuration = cacheDuration;
    }

    public boolean isAlwaysUseMessageFormat() {
        return isAlwaysUseMessageFormat;
    }

    public void setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat) {
        isAlwaysUseMessageFormat = alwaysUseMessageFormat;
    }

    public boolean isUseCodeAsDefaultMessage() {
        return isUseCodeAsDefaultMessage;
    }

    public void setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage) {
        isUseCodeAsDefaultMessage = useCodeAsDefaultMessage;
    }
}
